package cn.stronglink.assetmanage.entity;

import java.util.List;

/**
 * @author zww
 * 2018 2018/6/19 0:42
 */
public class UserOnLine {

    /**
     * permissions : ["user","dept","role","log","sys","assetType","assetAttr","assetBrand","assetModel","dataCenter","tRoom","cabinet","basic","presetCheack","preset","addUp","delUp","oneApproveUp","twoApproveUp","up","addDown","delDown","oneApproveDown","twoApproveDown","down","usingCheack","distribution","qy","borrow","repair","bf","addOut","delOut","oneApproveOut","twoApproveOut","out","retiring","retiringCheack","shelfUpCheack","transferCheack","shelfDownCheack","equipment","ipParam","rg","resource","resourceManage","maintain","topology","assetRecord","advancedQuery","assetSearch","inventory","patrolPlan","inventorySheet","patrol","inspectionCheck","typeLedger","statusLedger","brandLedger","departLedger","serviceLifeLedger","cabinetCount","ledger","outOfStorage","alarm","visitor","maintenant","outRemind","scrapRemind","patrolRemind","temperature","infoSearch","jcv","reportPlan","reportList","report","hardware","sys","basic","equipment","resourceManage","assetSearch","inspectionCheck","ledger","infoSearch","preset","up","down","distribution","out","report","equipment"]
     * user : {"account":"wanglei","admin":false,"createTime":"2017-06-27 00:50:59","deptId":876031601730142208,"deptId_":"876031601730142208","email":"1","id":879381487208943616,"id_":"879381487208943616","name":"王磊","phone":"1","sex":1,"status":1,"sys":false,"updateBy":878827689403076608,"updateTime":"2018-01-02 19:19:57"}
     * data : 王磊
     * httpCode : 200
     * msg : OK
     * timestamp : 1529321431925
     */

    private UserBean user;
    private String data;
    private int httpCode;
    private String msg;
    private long timestamp;
    private List<String> permissions;

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public int getHttpCode() {
        return httpCode;
    }

    public void setHttpCode(int httpCode) {
        this.httpCode = httpCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public List<String> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<String> permissions) {
        this.permissions = permissions;
    }

    public static class UserBean {
        /**
         * account : wanglei
         * admin : false
         * createTime : 2017-06-27 00:50:59
         * deptId : 876031601730142208
         * deptId_ : 876031601730142208
         * email : 1
         * id : 879381487208943616
         * id_ : 879381487208943616
         * name : 王磊
         * phone : 1
         * sex : 1
         * status : 1
         * sys : false
         * updateBy : 878827689403076608
         * updateTime : 2018-01-02 19:19:57
         */

        private String account;
        private boolean admin;
        private String createTime;
        private long deptId;
        private String deptId_;
        private String email;
        private long id;
        private String id_;
        private String name;
        private String phone;
        private int sex;
        private int status;
        private boolean sys;
        private long updateBy;
        private String updateTime;

        public String getAccount() {
            return account;
        }

        public void setAccount(String account) {
            this.account = account;
        }

        public boolean isAdmin() {
            return admin;
        }

        public void setAdmin(boolean admin) {
            this.admin = admin;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public long getDeptId() {
            return deptId;
        }

        public void setDeptId(long deptId) {
            this.deptId = deptId;
        }

        public String getDeptId_() {
            return deptId_;
        }

        public void setDeptId_(String deptId_) {
            this.deptId_ = deptId_;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public long getId() {
            return id;
        }

        public void setId(long id) {
            this.id = id;
        }

        public String getId_() {
            return id_;
        }

        public void setId_(String id_) {
            this.id_ = id_;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public int getSex() {
            return sex;
        }

        public void setSex(int sex) {
            this.sex = sex;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public boolean isSys() {
            return sys;
        }

        public void setSys(boolean sys) {
            this.sys = sys;
        }

        public long getUpdateBy() {
            return updateBy;
        }

        public void setUpdateBy(long updateBy) {
            this.updateBy = updateBy;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }
    }
}
